Skip to content

Conversation

@Madman10K
Copy link
Member

@Madman10K Madman10K commented Oct 27, 2025

We're violating many electron security guidelines right now. Sure, it's bad for security, but it also restricts us in terms of what electron dependencies we can use in some cases(previous issues with updating node dependencies from June/May(?)) and it also restricts us in terms of our future electron bundling.

Therefore, I'm making this PR. The goals of this PR are:

  • Remove inline CSS from HTML files
  • Disable webviews
  • Prevent opening new windows or popups
  • Disable window navigation(changing the page, for example, when clicking on a link)
  • Remove executing JS across render and main processes
  • Remove uses of the file:// protocol
  • Remove inline JS from HTML files
  • Disable web node integration
  • Enable context isolation
  • Enable sandboxing
  • Disable running insecure content
  • Enable web security
  • Set a secure content security policy

@Madman10K Madman10K self-assigned this Oct 27, 2025
@Madman10K Madman10K added enhancement New feature or request frontend Any issues regarding the GUI frontend security labels Oct 27, 2025
…HTML file, remove inline JS eval from main process, add additional security restrictions
@Madman10K Madman10K force-pushed the improve-electron-security branch from a5c84c6 to 98b9f81 Compare October 31, 2025 15:49
@Madman10K Madman10K force-pushed the improve-electron-security branch from 8cb492c to ff2601e Compare October 31, 2025 19:18
… out of html files + small refactoring and reformatting
@Madman10K Madman10K force-pushed the improve-electron-security branch from ff2601e to 4bca2c5 Compare October 31, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request frontend Any issues regarding the GUI frontend security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants